class Topic < ActiveRecord::Base
  has_many :threads
  has_many :posts, :through => :threads

  validates_presence_of :name
end
